package org.duiduo.result;

import org.springframework.web.servlet.ModelAndView;

/**
 * 统一错误返回
 *
 * @author 夜泷noga
 */
public class BaseResult {

    /**
     * 统一错误放回
     *
     * @return
     */
    public static ModelAndView errorResult(String massage) {
        ModelAndView mView = new ModelAndView();
        mView.addObject("message", massage);
        mView.setViewName("error");
        return mView;
    }
}
